package cn.marinda.resturants.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单
 *
 * @author hwj
 * @date 2021/12/26
 */
@Data
@TableName("r_orders")
public class Orders {
    @TableId(value = "uid",type = IdType.UUID)
    private String uid;
    private String id;
    @TableField(value = "meal_uid")
    private String mealUid;
    @TableField(value = "user_uid")
    private String userUid;
    @TableField(value = "pay_number")
    private BigDecimal payNumber;
    @TableField(value = "start_date")
    private String startDate;
    @TableField(value = "end_date")
    private String endDate;

    @Version
    private int version;
}
